# def main():
#     max = 0
#     getMax(1,2,max)
#     print(max)
#
# def getMax(value1,value2,max):
#     max = value1 if value1>value2 else value2
# main()

# def main():
#     i = 1
#     while i<=6:
#         print(function1(i,2))
#         i += 1
# def function1(i,num):
#     line = ""
#     for j in range(1,i):
#         line += str(num)+" "
#         num *= 2
#     return line
# main()



# def main():
#     times = 3
#     print("Before the call,variable","times is ",times)
#     nPrint("Welcome to CS!",times)
#     print("After the call,variable","times is ",times)
#
# def nPrint(message,n):
#     while n > 0:
#         print("n = ",n)
#         print(message)
#         n -= 1
#
# main()


def main():
    i = 0
    while i<=4:
        print("before ", i)
        function1(i)
        i += 1
        print("i is ",i)

def function1(i):
    line = " "
    while i >= 1:
        if i%3 !=0:
            line += str(i) +" "
            i -= 1
    print(line)

main()